package com.aliyun.messagemgt.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author
 * @date
 */
@Data
public class PushChannelList {

    private Long pushChannelId;

    private Byte channelType;

    /**
     * 渠道编码
     */
    private String channelCode;

    private String description;

    private String pushChannelDescription;

    private String icon;

    private String appPackageName;

    private String appKey;

    private String appSecret;

    private String huaweiAppId;

    private String huaweiAppSecret;

    private String xiaomiAppSecret;

    private String gcmFcmSecret;

    private String corpId;

    private String corpSecret;

    private Integer agentId;

    private Byte defaultStatus;

    private String owner;

    private List<Map> owners;

    private String ownerDept;

    private String ownerDeptName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date orderTime;

    private Integer topStatus;

    private Byte useStatus;

    private Byte stateDelete;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date timeCreate;

    private String userCreate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date timeUpdate;

    private String userUpdate;

    /**
     *  数据权限  0 可见 1 具有完全的操作权（为管理员）
     */
    private Integer dataPrivilege;

    private Integer channelSysType;

    private String channeluuid;
    //系统段的配置参数

    /**
     * api名称
     */
    private String apiName;

    /**
     * URL(和网页端公用)
     */
    private String apiUrl;

    /**
     * api方法
     */
    private String method;

    /**
     * 网页名称
     */
    private String webPackageName;

    private String apiHost;

    private String apiAppKey;

    private String apiAppSecret;

    /**
     * 蓝信grandType
     */
    private String grandType;

    private String gongZhongNoName;

    private String mqAddress;

    private String groupId;

    private String topic;

    private String tag;

    private String accessKey;

    private String secretKey;

    /**
     * 企业群唯一标识
     */
    private String chatId;
    //被引用数
    private Integer quoteNum;

    //被引用中状态为发布的数量
    private Integer publishNum;

    //是否发送了下线通知消息 0：未发送；1：已发送
    private Integer offMsg;


    /**
     * 短信模板code
     */
    private String smsTemplateCode;

    /**
     * 邮件host
     */
    private String mailHost;
    /**
     * 短信/邮件用户名
     */
    private String sendName;
    /**
     * 短信/邮件密码/授权码
     */
    private String passWord;
    /**
     * 邮件port
     */
    private Integer mailPort;

    private Integer mailAgreement;

    private String endpoint;

    private String name;

    private String tenantCode;

    private String tenantName;

    private List<ChannelEmailParam> params;

}
